<% if action.valid? %>
  feedbin.updateDialog("<%= Dialog::ActionResults.dom_id %>", "<%= j render Dialog::ActionResults.new(action: action) %>");
<% else %>
  feedbin.updateDialog("<%= Dialog::ActionResults::Error.dom_id %>", "<%= j render Dialog::ActionResults::Error.new(action: action) %>");
<% end %>
